package com.ddiviewer;

import android.os.Parcel;
import android.os.Parcelable;

public class Item implements Parcelable{
	
	private String ID					= null;
	private String Name					= null;
	private String Tab					= null;
	private String Level 				= null;
	private String TierName				= null;
	private String Category 			= null;
	private String GroupRole 			= null;
	private String CombatRole 			= null;
	private String Prerequisite			= null;
	private String EnhancementValue		= null;
	private String DescriptionAttribute	= null;
	
	// Constructor
	public Item() {
		ID						= new String();
		Tab						= new String();
		Name					= new String();
		Level					= new String();
		TierName				= new String();
		Category				= new String();
		GroupRole				= new String();
		CombatRole				= new String();
		Prerequisite			= new String();
		EnhancementValue		= new String();
		DescriptionAttribute	= new String();
	}
	
	private Item(Parcel in) {
		readFromParcel(in);
	}
	
	public String getID() 						{ return this.ID; }
	public String getName() 					{ return this.Name; }
	public String getTab()						{ return this.Tab; }
	public String getLevel()					{ return this.Level; }
	public String getTierName()					{ return this.TierName; }
	public String getCategory()					{ return this.Category; }
	public String getGroupRole()				{ return this.GroupRole; }
	public String getCombatRole()				{ return this.CombatRole; }
	public String getPrerequisite()				{ return this.Prerequisite; }
	public String getEnhancementValue()			{ return this.EnhancementValue; }
	public String getDescriptionAttribute()		{ return this.DescriptionAttribute; }
	@Override
	public String toString() 					{ return this.Name; }
	
	
	public void setID(String s)						{ this.ID = s; }
	public void setName(String s)					{ this.Name = s; }
	public void setTab(String s)					{ this.Tab = s; }
	public void setLevel(String s)					{ this.Level = s; }
	public void setTierName(String s)				{ this.TierName = s; }
	public void setCategory(String s)				{ this.Category = s; }
	public void setGroupRole(String s)				{ this.GroupRole = s; }
	public void setCombatRole(String s)				{ this.CombatRole = s; }
	public void setPrerequisite(String s)			{ this.Prerequisite = s; }
	public void setEnhancementValue(String s)		{ this.EnhancementValue = s; }
	public void setDescriptionAttribute(String s)	{ this.DescriptionAttribute = s; }




	public void writeToParcel(Parcel dest, int flags) {
		writeToParcel(dest);
	}
	
	public void writeToParcel(Parcel out) {
		out.writeString(ID);
		out.writeString(Name);
		out.writeString(Tab);
		out.writeString(Level);
		out.writeString(TierName);
		out.writeString(Category);
		out.writeString(GroupRole);
		out.writeString(CombatRole);
		out.writeString(Prerequisite);
		out.writeString(EnhancementValue);
		out.writeString(DescriptionAttribute);
	}
	
	public void readFromParcel(Parcel in) {
		ID = in.readString();
		Name = in.readString();
		Tab = in.readString();
		Level = in.readString();
		TierName = in.readString();
		Category = in.readString();
		GroupRole = in.readString();
		CombatRole = in.readString();
		Prerequisite = in.readString();
		EnhancementValue = in.readString();
		DescriptionAttribute = in.readString();
	}
	
    public static final Parcelable.Creator<Item> CREATOR = new Parcelable.Creator<Item>() {
    	public Item createFromParcel(Parcel in) { return new Item(in); }
    	public Item[] newArray(int size) { return new Item[size]; }
    };

	public int describeContents() { return 0; }
}
